Security of Brain-Computer Interfaces