The theory of transfers in a multilateral world: The customs union case