Nonuniform thinned fiber Bragg gratings for simultaneous refractive index and temperature measurements