Electrical discharge treatment