Modeling and simulation of power electronic systems