Comparative study of grid frequency stability using flywheel-based variable-speed drive and energy capacitor system †