Atomic structure of pyramidal defects in Mg-doped GaN