REFERENCE FRAMES IN AC MACHINES