Internal structure of semiconductor nanowires was studied by x-ray grazing-incidence x-ray diffraction and x-ray small-angle scattering