Title: Stability-Constrained Optimization for Modern Power System Operation and Planning