Retrieving positions of closely packed sub-wavelength nanoparticles from their diffraction patterns