FRONTIERS SWITCHING CONTROL STRATEGY FOR AN ENERGY STORAGE SYSTEM