Preparation of GaAs structures for different devices by chloride transport