Who led the Confederate forces defending Richmond throughout the war?