Integrating speaker-hearer relations in a cognitive model for politeness