A FREQUENCY MODULATION POWER OPTIMIZATION METHOD FOR ENERGY STORAGE