Photoelectrochemical conversion using sprayed CdSe