Macromagnetic Approach to the Modeling in Time Domain of Magnetic Losses of Ring Cores of Soft Ferrites in Power Electronics