Teaching and complex tools evolved together in humans, study says