Scaling thermodynamic model for the self-induced nucleation of GaN nanowires