The German U-boat force maintained a fearsome reputation. But American submariners fought more effectively.