Optimization of an electrode made from CdS–ZnO nanorods for hydrogen generation from photoelectrochemical splitting of water