Functional relationship between dental macrowear and diet in Late Pleistocene and recent modern human populations