Using basic principles of mechanics of materials to assess the seismic risk of entire countries