Electrostatic insulation of a high-voltage gap