Effects of surface and twinning energies on twining-superlattice formation in group III–V semiconductor nanowires: a first-principles study