A Configurable Hardware Accelerator for Brain-Computer Interface Applications