Describe the role of sex chromosomes in the determination of sex in humans and Drosophila melanogaster (fruit fly).