Influence of Mg doping on GaN nanowires.