Cross sections for ionization of gases by 5-4000-keV protons and for electron capture by 5-150-keV protons