A study of selective and nonselective reactive ion etching of GaAs/AlGaAs materials