Greig, John, 1779-1858