Motors or generators having a rotating armature and a rotating excitation field