Fiber surface Bragg grating waveguide for refractive index measurements.