High quality electron bunches for a multistage GeV accelerator with resonant multipulse ionization injection