A comparison of three types of multispeed direct current motors