Towards VR Training Adapted to Affective and Cognitive States: General Method and Evaluation of MentalWorkload | Synapse