The state of copper in the CuI-As2se3 and CUI-PbI2-As2Se3 chalcogenide films prepared by chemical deposition