how to produce magnetism