Impact of ringing on switching losses of wide band-gap devices in a phase-leg configuration