Fundamental understanding of the growth, doping and characterization of aligned zno nanowires