Application of flexible energy storage devices