DESIGN OF AN ADAPTIVE FREQUENCY CONTROL FOR FLYWHEEL ENERGY STORAGE