The dual decomposition of aggregation functions and its application in welfare economics