Energetic Considerations And Structural Characterization Of Twinning In Nanowires