Defect assessment of Mg-doped GaN by beam injection techniques