The sensitization of SrTiO3 and TiO2 photoelectrodes by surface doping