Structural, optical and electrical properties of Ni-doped CdS thin films prepared by spray pyrolysis