Rivian turned down GM investment so it could build EVs for others