Encapsulation of GaAs and GaAsPd in furnace annealing