Structure and properties of nanostructured ZnO arrays and ZnO/Ag nanocomposites fabricated by pulsed electrodeposition