Stability analysis using the SIESTA equilibrium code