A Lagrangian theory of geostrophic adjustment for zonally invariant flows on a rotating spherical earth