Why were the Stuarts overthrown and why did they have to flee to France?