Analysis of switching ferrite cores as circuit elements