Rational engineering of semiconductor nanowire superstructures