Factors governing the evolution of eusociality through kin selection