In shakeup, US names new commander for Afghan war