Resonance Raman scattering in semiconductor quantum dots: Adiabatic versus time-dependent perturbation theory