Mechanisms of band-edge emission in Mg-doped p-type GaN | Synapse