Confalonieri, Federico, active 1774-1817, Conte; Deputy of the regency at Milan