A dynamic method to study the transmission of social foraging information in flocks using robots