Enhancement of free-to-bound transitions due to resonant electron capture in Be-doped AlGaAs/GaAs quantum wells