Optimal quadratic spline collocation methods for the shallow water equations on the sphere