Thermogravimetry and evolved gas analysis for the investigation of ligand-exchange reaction in thiol-functionalized gold nanoparticles