Static electricity in polymers. I. Theory and measurement