Fabrics that can generate electricity