Chemical effects in TiO2 and titanates due to bombardment with Ar+ and O2+ ions of different energies (3.5-10 keV)