Quadratic spline Galerkin method for the shallow water equations on the sphere