The electrocatalytic properties of doped TiO2