The emergence of leaders and followers in foraging pairs when the qualities of individuals differ