Evolutionary ecology of specialization: insights from phylogenetic analysis