Hamilton, William, 1777-1859