What are the main factors that determine population size and growth in ecosystems?