Text this: EEG-Based Brain Functional Network Analysis for Differential Identification of Dementia-Related Disorders and Their Onset