Ratiometric optical sensor for dual sensing of temperature and oxygen