Characteristics of P waves and S waves