Foreign direct investment and external debt