A trans-acting factor mediates inversion of a specific DNA segment in flagellar phase variation of Salmonella