How seismic waves are created