Smart structural and material optimizations in spider silk anchors and gecko adhesion: a study based on the new theory of multiple peeling