Text this: Accurate modeling of nonideal low-power PWM DC-DC converters operating in CCM and DCM using enhanced circuit-averaging techniques