who were the candidates in the american election of 1864?