Stability robustness analysis for state space models