Affective level design for a role-playing videogame evaluated by a brain--computer interface and machine learning methods