for how many years was abraham lincoln president of united states