OPTIMAL DESIGN OF ENERGY STORAGE SYSTEM TO BUFFER CHARGING