China and North Korea absorb lessons from Ukraine's evolving battlefield