Identifying control mechanisms of granuloma formation during M. tuberculosis infection using an agent-based model