Methods for Detecting Early Warnings of Critical Transitions in Time Series Illustrated Using Simulated Ecological Data