Surface transformation and inversion domain boundaries in gallium nitride nanorods