Computation of electron-impact K-shell ionization cross sections of atoms