Process optimization of multicycle rapid thermal annealing of Mg-implanted GaN