Structural, electrical optical and photoconducting properties of pure and doped CdS layers produced by spray pyrolysis