EV startup Rivian to build $5 billion plant in Georgia, posts quarterly loss