Theory of sliding-mode triboelectric nanogenerators