How can you produce a magnet with exactly the right magnetic field? Making magnets with a 3D printer.