Evolutionary dynamics of sex determination : Mechanistic theory and empirical investigations