Structure and surface effect of field emission from gallium nitride nanowires