Effect of the functionalization of CdS nanoparticles in the in-situ synthesis of P3HT/CdS composites