Convergence Of Galerkin Variational Integrators For Vector Spaces And Lie Groups