Angular-overlap calculation of the Jahn-Teller stabilization energies for f-orbital degeneracies