Caste Determination in a Polymorphic Social Insect: Nutritional, Social, and Genetic Factors