Inferring diet from dental morphology in terrestrial mammals