Resonance trapping of electrons and their drift velocity in gases