Synthesis of a novel three-dimensional sponge-like microporous CdS film with high photoelectrochemical performance and stability