On the quantum theory of resonance scattering of atoms by light