Spectral-element analysis in seismology