Thomson, John, 1778-1840