Simultaneous measurement of refractive index and temperature using SMP in Sagnac loop