Oscillations, neural computations and learning during wake and sleep