Control of structural flexibility of layered-pillared metal-organic frameworks anchored at surfaces | Synapse