Quantum theory of the emission process