Optical gain in homoepitaxial GaN