Preparation, characterization, and bistable photoconduction properties of thin CdS layers