a population in ecology is defined as