Diffractive electron imaging of nanoparticles on a substrate