Interaction mechanisms of near‐surface quantum wells with oxidized and H‐passivated AlGaAs surfaces