A quantum mechanical polarizable continuum model for the calculation of resonance Raman spectra in condensed phase