Regime changes in ecological systems: An information theory approach