Oscillations of algal biomass, nutrients and dissolved oxygen as a measure of ecosystem stability