Using genetic data to estimate diffusion rates in heterogeneous landscapes