The ionization of H and He+ by electron impact