Trade Agreements as Endogenously Incomplete Contracts