who won the battle of shiloh during the civil war