Distance and foreign direct investment when contracts are incomplete