The Role of Domestic and Foreign Investors in a Simple Model of Speculative Attacks