Fabrication of GaN wafers for electronic and optoelectronic devices