Integrated optical temperature sensor