Effect of elongational flow on the orientational order phase transitions and viscosity of hard rod fluids