Method for refractive index measurement of nanoparticles.