Rivian post first quarterly profit