Accurate modeling of buck converters with magnetic-core inductors