An embedded system for EEG acquisition and processing for brain computer interface applications