Rivian warns of impact from supply-chain woes, shares tumble