Self-heating and polarization effects in AlGaN/AlN/GaN/AlGaN based devices