Simulation of the electrical characteristics of high-voltage mesa and planar GaN Schottky and p-i-n rectifiers