Optical sensing of temperature, pressure