Analyzing the Interaction between Knowledge and Social Commitments in Multi-Agent Systems