The elastic-rebound theory of earthquakes