Distributed surface donor states and the two-dimensional electron gas at AlGaN/GaN heterojunctions