A generalized numerical method for ferrite inductors analysis in high current ripple operation