Scientists uncover how the brain washes itself during sleep