Identification of community structure-based brain states and transitions using functional MRI