Electrodeposition of CdS from non-aqueous bath