A comparative study on nanotextured high density Mg-doped and undoped GaN