Quantum electrodynamics in a whispering-gallery microcavity coated with a polymer nanolayer