A novel combined application of capacitive method and near-infrared spectroscopy for predicting the density and moisture content of solid wood