The origins of student misunderstanding of undergraduate electrical machine theory