Bannatyne, William Macleod, Sir, 1743-1833