Inferring the rules of social interaction in migrating caribou