Photoelectronic processes in transition-element doped n-type TiO2 electrodes