Text this: Detection and Estimation of Working Memory States and Cognitive Functions Based on Neurophysiological Measures