Design, Modeling, and Power Electronic Control for Transient Stabilization of Power Grids Using Flywheel Energy Storage Systems