Tree-related microhabitat diversity as a proxy for the conservation of beetle communities in managed forests of Fagus sylvatica