D'Armfelt, Gustaf Mauritz, Baron, Swedish diplomatist