Enhanced carbon doping of n-TiO2 thin films for photoelectrochemical water splitting