CO2 adsorption-induced structural changes in coordination polymer ligands elucidated via molecular simulations and experiments.