The short and long-run effects of international environmental agreements on trade