Quantum Theory of Spontaneous Emission in Multilayer Dielectric Structures