Configuration of energy storage system for 5g base stations