Study of structural stabilities and optical properties of HgTe under high pressure