A unified transformation of the complete molecular Hamiltonian