Policymakers' horizon and the sustainability of international cooperation