Stability Analysis of Sharpness-Aware Minimization