The Optical and Photoelectrochemical Properties of Electrodeposited CdS and SnS Thin Films.