what democratic opponent did lincoln defeat in the 1864 election?