Buchan, William, 1729-1805