Automatic registration of scanning electron microscope images