Ion energy losses during the charge-exchange process