Institutions sans frontières: International agreements and foreign investment