Sex determination and sex differentiation