Isolation-with-migration models for pairs of genes