When an earthquake occurs, seismic waves travel _________________________.