On the analytical determination of the complex relative permeance function for slotted electrical machines