Influence of thermal annealings in different atmospheres on the band-gap shift and resistivity of CdS thin films