Homoepitaxial growth of GaN under Ga-stable and N-stable conditions by plasma-assisted molecular beam epitaxy