The Spread of an Inversion with Migration and Selection