A thermodynamic characterization of mechanical, thermal and adsorption properties of flexible metal-organic frameworks