Imaging the spontaneous flow of thought: distinct periods of cognition contribute to dynamic functional connectivity during rest