Diet, ecology, and dental morphology in terrestrial mammals