The roles of demography and genetics in the early stages of colonization