Active thermal control by controlled shoot-through of power devices