who was the us president at the time of the battle of antietam?