An agent-based model to simulate inhabitants’ behavior during a flood event