Flying snakes could help to design next-generation robotics