Mass transfer and surface reaction in the growth and etching of GaAs(s)