Who annexed the kingdom of Hanover in 1766