The effects of environmental heterogeneity on the genetics of finite populations.