Synthesis and characterization of Ag-doped p-type ZnO nanowires