The effective interaction in nuclei and its perturbation expansion: An algebraic approach