Robots can learn how to support teachers in class sessions