Vellingk, Emst August, active 1716-1718, Count, Swedish diplomatist in Spain