Understand ecosystem regime shifts by modelling ecosystem development using Boolean networks