Production of filter capacitors