Hartree-Fock-Roothaan wavefunctions for diatomic molecules