ANIMATED-TEM: a toolbox for electron microscope automation based on image analysis