Characterization of thermal effects in fiber components using whispering-gallery modes resonances