Sleep viewed as a state of adaptive inactivity