Compositional and optoelectronic properties of CIS and CIGS thin films formed by electrodeposition