During the rule of the succeeding Hanoverian dynasty, power was gradually exercised more by parliament and the government. Which monarch granted assent reluctantly under the advise of his ministers?