Ultra-precise optical to radio frequency based chip-scale refractive index and temperature sensor