Exploring dynamic cognitive states using magnetic resonance imaging