Montgelas, Maximilian Josef Garnerin, active 1814-1823, Count, Bavarian Minister of State