Study of laser Raman spectra of nanoparticles of AgI and HgI2