X-ray characterization of catalytically grown ZnTe and ZnMgTe nanowires