Self-consistent compact electrical and thermal modeling of power devices including package and heat-sink