The relationship between diet and body mass in terrestrial mammals