Recovering the size of nanoparticles by digital in-line holography