Biparametric optical sensing of oxygen by titanium dioxide