Transformation of impure wood