Evolution of sex chromosomes