Polyamine Ligand-Mediated Self-Assembly of Gold and Silver Nanoparticles into Chainlike Structures in Aqueous Solution: Towards New Nanostructured Chemosensors