Development of Visible-Light-Driven TiO2 and SrTiO3 Photocatalysts Doped with Metal Cations for H2 or O2 Evolution