earthquakes produce two types of waves, they are