Analyzing the types of waves produced by earthquakes