Thermal management of solid state power switches