Synergistic effect of Ag/MoS2/TiO2 heterostructure arrays on enhancement of photoelectrochemical and photocatalytic performance