Simultaneous Mid-Infrared Gas Sensing and Upconversion Based on Third Harmonic Generation in Cascaded Waveguides