Alexander Cunningham — historian and diplomat (1654-1737)