What is the role of chromosomes in determining an individual's sex?