Linking spectral and functional diversity to predict ecosystem functions at community scale