Magnetic contrast in the scanning electron microscope