how many confederate soldiers died in the battle of gettysburg