An agent-based architecture for the development of intelligent virtual training environments