Quality assessment of heat-treated wood by NIR spectroscopy