The impact of bilateral investment treaties on foreign direct investment