Smyth, James Carmichael, Sir, 1779-1838