On the semi-discrete Galerkin method for hyperbolic problems and its application to problems in elastodynamics