Stewart, William Drummond, Sir, 1795 or 1796-1871