Preparation of CdS-CoSx photocatalysts and their photocatalytic and photoelectrochemical characteristics for hydrogen production