On the incorporation of Mg and the role of oxygen, silicon, and hydrogen in GaN prepared by reactive molecular beam epitaxy