Foreign investment and international security