Miniature flying robot that can perch and take off could be used in search and rescue, scientists say.