Developments in the n-electron valence state perturbation theory.