Fabrication of multipolar magnetic field sources