Characteristics of Mg-Doped GaN and AlGaN Grown by H2-Ambient and N2-Ambient Metalorganic Chemical Vapor Deposition