Lattice dynamics of magnesium using pseudopotential and ab initio Hartree-Fock approaches.