Photocatalyst based on titanium or iron semiconductors for the generation of hydrogen from water upon solar irradiation