Effects of environmental factors on population dynamics