Theory of raman scattering from molecules. Summation over vibrational states