Free energy profile of "breathing" flexible porous frameworks