Despite General Meade's victory at the Battle of Gettysburg, why did President Lincoln appoint Grant as the new general to lead the Union army?