Magnetic detectors