Thermodynamic analysis of semiconductor structures using a device simulator and lumped circuit modelling