Applications of brain-computer interfaces in neurodegenerative diseases