The effect of self-heating and electrical stress induced polarization in AlGaN/GaN heterojunction based devices