Diagnostic sex determination