Modeling thermal effects in submicron semiconductor devices