Molecular beam epitaxy of GaN: a phase diagram