Thermodynamic analysis of AlGaN HVPE growth