Which of the following best describes why James II of England was overthrown during the Glorious Revolution?