Electronic and optical properties of Ga-doped ZnO