Ab initio investigation of the structural and electronic properties of amorphous HgTe