Magnetic and optical properties of znO nanowire arrays synthesized by a simple hydrothermal process