Who ended the ability of the king to rule with divine right?

King William of Orange

King James II

King Charles II

King Charles I