A Generalized Approach to International Comparison of Agricultural Output and Productivity