Heating-Induced Transformation of Anatase TiO2 Nanorods into Rock-Salt TiO Nanoparticles: Implications for Photocatalytic and Gas-Sensing Applications