Human-in-the-Loop Approach to Safe Navigation of a Smart Wheelchair via Brain Computer Interface