Developmental plasticity links local adaptation and evolutionary diversification in foraging morphology.