Thermal ionization energy of Si and Mg in AlGaN