Genetic and hormonal control of brain sex differentiation