Carbon-fiber/polymer-matrix composites as capacitors