Assorted analytical and spectroscopic techniques for the optimization of the defect-related properties in size-controlled ZnO nanowires