Optical H2S and SO2 sensor based on chemical conversion and partition differential optical absorption spectroscopy.