High resolution refractive index sensor by using thinned fiber bragg gratings