Dispersion Analysis and Error Estimation of Galerkin Finite Element Methods for the Numerical Computation of Waves