Foreign direct investments, environmental externalities and capital segmentation in a rural economy