Electric field distribution in GaN∕AlGaN∕GaN heterostructures with two-dimensional electron and hole gas