Hydrogen passivation of impurity states and defects in AlGaAs