Accurate determination of cross sections for K-shell ionization by proton impact