Magnetic Patterning by Electron Beam-Assisted Carbon Lithography