A noticeable effect of Pr doping on key optoelectrical properties of CdS thin films prepared using spray pyrolysis technique for high-performance photodetector applications