Thermodynamics on hydride vapor phase epitaxy of AlN using AlCl3 and NH3