Genetic Population Structure and Allele Surfing During Range Expansion in Dynamic Habitats.