Photoelectrochemical and solar cell studies of n-CdSe films grown by repeated electrodeposition cycles