The economics and algorithmics of an integral settlement procedure on B2B networks