why is the interior layer of the earth related to earthquake?