A physical basis for earthquakes based on the elastic rebound model