How the density of a population affects and is determined by resource availability in the environment?