Passive and active brain-computer interfaces for rehabilitation in health 4.0