Development of a real-time algorithm for ERD/ERS detection for the discrimination between voluntary and un-voluntary activity