Nanosensors and other techniques for detecting nanoparticles in the environment