Optical studies of impurity trapping at the GaAlAs/GaAs interface in quantum well structures