Ligand-directed rapid formation of ultralong ZnO nanowires by oriented attachment for UV photodetectors