Linear analysis of waveform distortion for HVDC and FACTS devices | Synapse