Similar power laws for foreshock and aftershock sequences in a spring‐block model for earthquakes