Endogenous networks and international cooperation. (May 2016)