Ionization and electron capture cross sections for protons incident on noble and diatomic gases between 10 and 140 keV