Ionization of atoms and positive ions by electron and proton impact