A framework for quantitative analysis of livestock systems using theoretical concepts of production ecology. (October 2015)