One- and two-locus models of the origin of worker behavior in hymenoptera