Waveguide-Coupled Surface Plasmon Resonance Sensor for Both Liquid and Gas Detections