Quantitative analysis of farming systems for policy formulation: development of new tools