The origin and evolution of vertebrate sex chromosomes and dosage compensation