Ecosystem functions are related to tree diversity in forests but soil biodiversity in open woodlands and shrublands