Comparison of the electric moments obtained from finite basis set and finite-difference Hartree-Fock calculations for diatomic molecules