Stability and Optimization of Structures: Generalized Sensitivity Analysis