Electrochemical synthesis of thin CdS films