A new technique for the measurement of ionization cross sections with crossed electron and ion beams