Synthesis, properties and applications of GaN nanowires