The high-pressure phase transitions of silicon and gallium nitride : a comparative study of Hartree-Fock and density functional calculations