A systematic approach for transient analysis of power distribution networks with active devices