Ballooning stability of axisymmetric plasmas with sheared equilibrium flows