Cross sections for K-shell ionization, x-ray production, or auger-electron production by ion impact