Inference on forest attributes and ecological diversity of trees outside forest by a two-phase inventory