Karamzin, Nikolaĭ Mikhaĭlovich, 1766-1826.