Genetic diagnosis of intersex