Ultrasensitive surface-enhanced Raman scattering nanosensor for mercury ion detection based on functionalized silver nanoparticles