Neural dynamics in brain networks during the resting state and visual word recognition