Text this: Nanogenerators via dynamic regulation of electrical double layer