A demographic and dietary history of ancient dogs in the Americas using ancient DNA