Stability and Optimization of Flexible Space Structures