In an earthquake, which waves come first, S waves or P waves?