A software for automatic acquisition and analysis of nanoparticles in the transmission electron microscope