Genetics of sex determination