Analysis of abrupt transitions in ecological systems