Stability robustness test via quadratic Lyapunov forms