Seismic waves travel through Earth’s layers at different speeds depending on the