Rivian gained positive momentum in the second-quarter and beat Wall Street expectations as the company ramped up EV sales, narrowed losses, reduced costs and shored up its supply chain. The company struck a confident tone in its second-quarter earnings, which…