An application of homogenization techniques to population dynamics models