Catalytic effect of Ni for activation of Mg-doped GaN in N2 and N2O