Optimization of the defects and the nonradiative lifetime of GaAs/AlGaAs double heterostructures