The Theory of Charge Exchange and Ionization by Heavy Particles