DYNAMICS OF ELECTRICAL MACHINES