High-throughput magnetic patterning with laser direct writing