Factors affecting the quality of heat-treated wood.