Morphological pathway of flagellar assembly in Salmonella typhimurium