Global energy storage capacity has tripled in recent years, thanks to an industry that barely existed a decade ago.