Charge-tranfer reactions of oxygen ions and titanium ions at titanium oxide films