function of construction ofan electric motor