Ab initio investigations on the electronic structure and optical properties of HX-ZnO