Optical whispering-gallery mode spectroscopy for the study of molecule adsorption and desorption