Nicholl, John, Sir, 1759-1838