Analysis of Buck-Boost DC-DC PWM converter including parasitic components and switching losses