Layer-by-layer epitaxial growth of Mg on GaN(0001)