William Sempill — Scottish soldier and diplomat