Measurement of temperature profile induced by the optical signal in fiber Bragg gratings using whispering-gallery modes.