Geographical patterns of adaptation within a species’ range: interactions between drift and gene flow