The reflection of cognitive tasks in EEG and MRI and a method of its visualization