A mechanism for the hydration force demonstrated in a model system