Saudi Arabia finalizing foreign investment framework, hoping to attract foreign funds