Why did poland and hungary emerge from the transition to a market economy with less strain than other nations in the former soviet bloc?