Formation of Nickel Oxide Nanoribbons in the Cavity of Carbon Nanotubes