Sharing the surplus: a just and efficient proposal for environments with externalities