Triboelectric generators and sensors