In-plane buckling of shear deformable circular rings and arches