Fabrication of a ternary CdS/ZnIn2S4/TiO2 heterojunction for enhancing photoelectrochemical performance: effect of cascading electron–hole transfer