On the origin of flight in insects