Text this: Methods for detecting early warnings of critical transitions in time series illustrated using simulated ecological data.