who won the battle of gettysburg the north or the south