Relating Spontaneous Activity and Cognitive States via NeuroDynamic Modeling