Electronic, optical, and structural properties of some wurtzite crystals