Effect of a dielectric substrate on whispering-gallery-mode sensors