Elastic energy relaxation and critical thickness for plastic deformation in the core-shell InGaAs/GaAs nanopillars