Functionalized gold nanoparticles for the detection of nitrates in water