Ecological divergence of wild birds drives avian influenza spillover and global spread