Effects of donor density and temperature on electron systems in AlGaN/AlN/GaN and AlGaN/GaN structures