Effect of Gas Atmosphere on Carbothermal Reduction and Nitridation of Titanium Dioxide