The Theoretical Study of the Cinnabar-to-Rocksalt Phase Transitions of HgTe and CdTe under High Pressure