Text this: Optimized machine learning model for Alzheimer and epilepsy detection from EEG signals