Building a model of a seismograph and an inertial shock absorber for studying the nature of an earthquake