Free energy landscapes for the thermodynamic understanding of adsorption-induced deformations and structural transitions in porous materials