Complex dynamics of cognitive neural networks within normal and pathological brain states