Near-Infrared Spectroscopy for In Situ Monitoring of Geoenvironment