Carbon doped TiO2 nanowire arrays with improved photoelectrochemical water splitting performance