Comparison of optoelectronic properties of epitaxial and non-epitaxial GaN nanostructures