Evolution of thorax architecture in ant castes highlights trade-off between flight and ground behaviors