Simultaneous measurement of oxygen concentration and absorbance changes