Investor protection rights and foreign investment