Metal-organic frameworks under pressure: A thermodynamic exploration