what is the most important element for creating a magnetic field.