Arc-fault detection