Thermal Modeling of the Stator Slot in Electrical Machines Using an Extended Layer Approach