Quasi-stationary distributions for randomly perturbed dynamical