Allocation of emission permits with leakage through capital markets