A model for the atomic layer epitaxy of GaAs