Solving the migration–recombination equation from a genealogical point of view