The stability of model ecosystems