Toyota beats out GM for world's largest automaker