Cage structures and nanotubes of NiCl2