Design and Application of Surfaces with Tunable Adhesion to Liquids and Solids