Electrodeposition and material characterization of CdS thin films on titanium, aluminium and SnO2