Enhanced photoelectrochemical and photocatalytic activities of CdS nanowires by surface modification with MoS2 nanosheets