Empirical regularities in the charge-exchange cross sections of ions with nuclear charges from 5 to 10