Model checking security protocols : a multiagent system approach