Describe how activity within the earth results in earthquakes