On general transformations and variational principles for the magnetohydrodynamics of ideal fluids. Part III. Stability criteria for axisymmetric flows