Model checking GSM-based multi-agent systems