Metal ligation regulates conformational equilibria and binding properties of cavitands.