Experimental and theoretical study of electrodeposited CuInS2 thin films for solar cell applications