Analysis and design procedures of permanent magnet machines for hybrid electric vehicles and rail-traction applications