Stability of GaN nanocages