Thermodynamic analysis of the molecular beam epitaxy of AlInAs alloys