Electronic and optical properties of red HgI2.