Macro and micro agent-based modeling and simulation of critical infrastructures