Mechanics of the thorax in flies