Agents and Multimedia Technologies for an Innovative Didactics of Mathematics and Physics