Kinetic theory and atomic physics corrections for determination of ion velocities from charge-exchange spectroscopy