The electress Sophia and the Hanoverian succession,