Comparative analysis of characteristics of Si, Mg, and undoped GaN