Supercrystals of uniform nanorods and nanowires, and the nanorod-to-nanowire oriented transition