Rivian planning hundreds of layoffs following surge in staffing