Towards quantification of ecological sustainability in farming systems analysis