Structure, growth kinetics and electronic properties of electrochemically deposited CdS and CdTe thin films for solar cells