Comparative analysis of mammalian Y chromosomes illuminates ancestral structure and lineage-specific evolution