Flux-linkage calculation in permanent-magnet motors using the frozen permeabilities method