Investigation of GaAs and AlAs atomic-layer epitaxial growth mechanism based on experimental results and first-principles total energy calculation