Tracking EEG network dynamics through transitions between eyes-closed, eyes-open, and task states