Factors influencing foreign investment