Spin-coating deposition of PbS and CdS thin films for solar cell application