Dissociation of H-related defect complexes in Mg-doped GaN