Strain relaxation in semiconductor core/shell nanowires