Sharing the surplus in games with externalities within and across issues