The role of phenotypic plasticity and genetic diversity in the colonization of novel environments