In a group of insects descended from a common ancestor, some species evolved long siphoning mouthparts for nectar feeding, while others developed strong chewing structures for leaves. Which evolutionary principle most directly explains this diversification?