Definition and Experimental Validation of a Second-Order Thermal Model for Electrical Machines