Dye-sensitized photocatalytic and photoelectrochemical hydrogen production through water splitting