A Design Methodology For Tunable Adhesion And Friction Using Curved And Hierarchical Structures