Structural and optical studies of CuO nanostructures