A Stochastic Automata Network for Earthquake Simulation and Hazard Estimation