What is the 4 factors that affect the carrying capacity in an ecosystem?