two diagrams showing how the magnetic field works