Self-assembly of ZnO nanowires and the spatial resolved characterization of their luminescence