Refractive Index Measurements by Fiber Bragg Grating Sensor