Divergent evolution of dispersal in a heterogeneous landscape