Gas Detection by Near-Infrared Spectroscopy Based on a Surface Plasmon Resonance Photodetector