Capillarity-based switchable adhesion