Mechanisms and kinetics of vapor-phase etching of GaAs and GaP