Organic ligand displacement by metal salts to enhance nanoparticle functionality: thermoelectric properties of Ag2Te