Experimental and first-principles theoretical investigations of the growth and properties of pristine and Magnesium doped GaN nanostructures