Why Putin misjudged the war in Ukrain.