De Gottrau De Pensier, Tobie Alexis Joseph, 1784-1841, Swiss politician