Sleep protects complex neural networks from drifting into states of permanent instability