energy storage system architecture