On the electrical and optical properties of CdS films thermally deposited by a modified source