Resonances in electron scattering by molecules