STUDIES OF MAGNETIC FIELDS IN ELECTRICAL MACHINES BY MEANS OF FINITE ELEMENT ANALYSIS