Speculative Bubbles, Speculative Attacks, and Policy Switching