Design of an electronic device for brain computer interface applications