Evolution of self-organized division of labor in a response threshold model