In situ coherent X-ray diffraction of isolated core–shell nanowires