Resonances in electron impact on atoms