Eco-mechanics of lamellar autotomy in larval damselflies