Structural and transport properties of CdS films deposited on flexible substrates