Dynamics of the EEG slow-wave synchronization during sleep