Emergence of leadership in a group of autonomous robots