A Thermal Model For Igbt Modules And Its Implementation In A Real Time Simulator