Improved minority carrier lifetime in p-type GaN segments prepared by vacancy-guided redistribution of Mg