Methods for comparative analysis of waveform degradation in electrical and optical high-performance interconnections