Surface influence on stability and structure of hexagon-shaped III-V semiconductor nanorods