Series arc faults in AC and DC electrical circuits. Characterization and detection methods