Role of Thermodynamics and Kinetics in the Composition of Ternary III-V Nanowires