Using Agent-Based Simulation Models in the Analysis of Market Crashes