Accurate Hartree-Fock-Slater calculations on small diatomic molecules with the finite-element method