Joint inference of migration and reassortment patterns for viruses with segment genomes