Tolstoi, Nikolai Aleksandrovich, active 1793-1826, Count, Master of Ceremonies at the Russian court