Equivalent Electrical Model of a Ferrite Core Inductor Excited by a Square Waveform Including Saturation and Power Losses for Circuit Simulation