Reactive ion plating of TiO2