instrument to measure magnetic field