How were the political and religious motivations of the Scottish government influenced by the Restoration of Charles II?