Effects of intrinsic defects on electronic structure and optical properties of Ga-doped ZnO