SMART DESIGN AND CONTROL OF ENERGY STORAGE SYSTEMS