Space-time spectral element method for solution of second-order hyperbolic equations