The interplay of demography and selection during maize domestication and expansion