Physical and thermal modelling of power transistors