Laser generated Ag and Ag–Au composite nanoparticles for refractive index sensor