Chapter 2 A framework for quantitative analysis of livestock systems using theoretical concepts of production ecology