Using functional indicators to detect state changes in terrestrial ecosystems