Study shows how one insect got its wings