Means for detecting the presence of an arc or other discharge