Electrochemical synthesis of semiconducting CdSe thin films