Optical and structural study of GaN nanowires grown by catalyst-free molecular beam epitaxy. I. Near-band-edge luminescence and strain effects