Effect of ammoniating temperature on microstructure and optical properties of one-dimensional GaN nanowires doped with magnesium