K- andL-shell ionization by proton bombardment of Ag and I