describe how activity within the earth results in earthquakes