Perturbation theory for the effective interaction in nuclei