PRINCIPLES OF ENERGY STORAGE SYSTEM INTEGRATION