Weavable yarn-shaped moisture-induced electric generator