Structural, morphological, optical analyses of Ni-doped CdS thin films and their photovoltaic performance in hybrid solar cells