Dynamics of Cortical Local Connectivity during Sleep-Wake States and the Homeostatic Process.