Prediction of tree sapwood and heartwood profiles using pipe model and branch thinning theory