Stopping cross sections of TiO2 for H and He ions