Catastrophic regime shifts in ecosystems: linking theory to observation