Threading defect elimination in GaN nanowires