Importance of the electronic structure of modified TiO2 in the photoelectrochemical processes of hydrogen generation