who were some of the commander of the union in the gettysburg battle?