A new method for modeling the heterogeneity of forest structure