Shell-thickness dependent electron transfer and relaxation in type-II core–shell CdS/TiO2 structures with optimized photoelectrochemical performance | Synapse