Fast procedure for the calculation of maximum slot filling factors in electrical machines