Niche shifts after island colonization spurred adaptive diversification and speciation in a cosmopolitan bird clade