Gallium Nitride Nanowire Based Electronic and Optical Devices