Learning to Generate Pointing Gestures in Situated Embodied Conversational Agents