Modeling of gas phase and surface reactions in an aluminum nitride growth system