Rivian beats estimates for second-quarter R1T and R1S deliveries