Diameter distributions and structural sustainability in forests