Effects of the sequential implantation of Mg and N ions into GaN for p-type doping