In-line fiber Mach–Zehnder interferometer for simultaneous measurement of refractive index and temperature based on thinned fiber