Influence of ammoniating time on the microstructure of Mg-doped GaN nanowires