Quantum theory of radiative transfer