CIGS-based solar cells prepared from electrodeposited precursor films