Effects of oxygen and nitrogen on drifting electrons in a liquid argon TPC