Ribeaupierre, Aleksandr Ivanovich, Russian diplomatist