The Continuation Method in Power System Optimization: Applications to Economy-Security Functions