Initial effective stress controls the nature of earthquakes