Chromosomal inversions as drivers of ecological adaptation and diversification in a grasshopper species complex