Evolution of compound centromeres