US electric vehicle pioneer has been hit by slowing demand