Quantum electromagnetic fields in the presence of a dielectric microsphere