Evolution of cosmological perturbations during reheating