Multipolar SPM machines for direct drive application: a general design approach