Thiocarboxylate functionalization of silver nanoparticles: effect of chain length on the electrical conductivity of nanoparticles and their polymer composites